

<div class="x-body">
  <form class="layui-form form_single" action="{:url()}" method="post">
    <div class="layui-form-item">
      <label  class="layui-form-label">
        等级名称
      </label>
      <div class="layui-input-inline">
        <input type="text" id="username" name="credit_name" onchange="this.value=this.value.substring(0, 30)" onkeydown="this.value=this.value.substring(0, 30)" onkeyup="this.value=this.value.substring(0, 30)" value="{$info['credit_name']|default=''}"
               autocomplete="off" class="layui-input" >
      </div>
      <div style="color: red !important;" class="layui-form-mid layui-word-aux">
        （限制30字符）
      </div>

    </div>
    <div class="layui-form-item">
      <label  class="layui-form-label">
        信用分
      </label>
      <div class="layui-input-inline">
        <input type="number" id="number" name="number"  value="{$info['name']|default=''}"
               autocomplete="off" class="layui-input" >
      </div>
      <div style="color: red !important;" class="layui-form-mid layui-word-aux">
        （信用分）
      </div>

    </div>
    <div class="layui-form-item">
      <label for="logo" class="layui-form-label">
        <span class="x-red">*</span>等级图标（165*128）
      </label>
      <div id="logo" class="layui-input-block">
        {assign name="cover_id" value="$info.cover_id|default='0'" /}
        {:widget('file/index', ['name' => 'cover_id', 'value' => $cover_id, 'type' => 'img'])}
      </div>
      <!--<div class="layui-form-mid layui-word-aux">-->
      <!--(请上传单张封面图片)-->
      <!--</div>-->
    </div>



    <div class="box-footer">

      <input type="hidden" name="id" value="{$info['id']|default='0'}"/>

      {include file="layout/edit_btn_group"/}

    </div>

  </form>
</div>


